﻿@model IList<SystemWarningModel>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    @T("Admin.System.Warnings")
                </div>
                <div class="layui-card-body">
                    <div class="layui-form" wid100>
                        @foreach (var warning in Model)
                        {
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    @switch (warning.Level)
                                    {
                                        case SystemWarningLevel.Pass:
                                            {
                                                <span class="layui-badge layui-bg-green">正常</span>
                                            }
                                            break;
                                        case SystemWarningLevel.Warning:
                                            {
                                                <span class="layui-badge">警告</span>
                                            }
                                            break;
                                        case SystemWarningLevel.Fail:
                                            {
                                                <span class="layui-badge layui-bg-orange">错误</span>
                                            }
                                            break;
                                    }
                                    @warning.Text
                                </div>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
    layui.use(['index']);
</script>